Skip to main content

Create Reservation

Creates a new reservation for a given property or room-type.

HTTP Requestโ€‹

POST https://dev.calry.app/api/v2/vrs/reservations

Headersโ€‹

HeaderValue
AuthorizationBearer YOUR_ACCESS_TOKEN
workspaceIdYOUR_WORKSPACE_ID
integrationAccountIdYOUR_INTEGRATION_ACCOUNT_ID

Request Bodyโ€‹

The request body should be a JSON object containing the following fields:

FieldTypeDescription
propertyIdstring/numberUnique Identifier of the property to be booked.
roomTypeIdstring/numberUnique Identifier of the room-type to be booked.
arrivalDatestringArrival Date of the reservation.
departureDatestringDeparture Date of the reservation.
arrivalEstimatedTimestringOptional. Estimated time of arrival.
departureEstimatedTimestringOptional. Estimated time of departure.
guestobject
guest.namestringOptional. Full name of the guest.
guest.firstNamestringOptional. First name of the guest.
guest.lastNamestringOptional. Last name of the guest.
guest.emailstringOptional. Email address of the guest.
guest.phonestring/numberOptional. Phone number of the guest.
guest.addressobject
guest.address.line1stringOptional. Address line 1 of the guest.
guest.address.line2stringOptional. Address line 2 of the guest.
guest.address.postalCodestringOptional. Postal code of the guest's address.
guest.address.citystringOptional. City of the guest's address.
guest.address.statestringOptional. State of the guest's address.
guest.address.countrystringOptional. Country of the guest's address.
numberOfGuestsnumberOptional. Total number of guests.
numberOfAdultsnumberOptional. Number of adults among the guests.
numberOfChildrennumberOptional. Number of children among the guests.
numberOfInfantsnumberOptional. Number of infants among the guests.
numberOfPetsnumberOptional. Number of pets accompanying the guests.
totalPricenumberOptional. Total price for the stay.
currencystringOptional. Currency in which the payment is made.
notesstringOptional. Additional notes regarding the stay.
commentsstringOptional. Additional comments regarding the stay.

Note:

  • If roomTypeId is not provided, pass the propertyId as the roomTypeId.

Example Requestโ€‹

curl --location 'https://dev.calry.app/api/v2/vrs/reservations' \
--header 'Authorization: Bearer eyJraWQiOiJzLWJhNjY5YzZhLTE0OTktNDQ1MS05MjFhLTExYzQyNDZhZTQ1NSIsInR5cCI6IkpXVCIsImFsZyI6IlJTMjU2In0.eyJpc3MiOiJodHRwOi8vbG9jYWxob3N0OjMwMDAvYXV0aCIsInVzZXJJZCI6IjE2NjI0N2U3LTNiYjktNDExYy05ZDBjLTBjMDY3ZTg0ODhmNCIsIndvcmtzcGFjZUlkIjoiZjAzYzNjOTctNDJjZC00MzMwLTk5OWMtZmM5OTA2ZDgzMzY1IiwibmFtZSI6InNhZGFzIiwic291cmNlIjoibWljcm9zZXJ2aWNlIiwiaWF0IjoxNzA1OTI4ODQ5LCJleHAiOjIyOTA4MTMwMDUxfQ.Vft46kRiDKRXA8u7iOB1USkvECs3bI5qmT0kpU2cpogONrg0HFfoUNj658uBRLoyoUr_tq2TrUqf7S1MGqf58I_1zlpKJ0-7wLlKCA5atWGXDPJqaY6xqsJGwqf3z6Yb1QR7o_r3YsLUizSzHc7BT2wFdHaIBydUyNG_kQEogyFWieMTNFFHwU0aUq1LoSyyIL5nWoDeM-pFd0nd659_HOP1ZlvJIGWjVYB94-IrF1q-i4NKokhx6WEaftuIpSKLEsJAskuDWIzvittcq4RszAvaAVHUOKZd907JASGNpzBF812vggr_HmXVAxdVSo5cmzexh-fcgXfe8npXgkiEhg' \
--header 'workspaceId: f03c3c97-42cd-4330-999c-fc9906d83365' \
--header 'integrationAccountId: 526bcda0-7312-449f-8525-66048fd03fb7' \
--header 'Content-Type: application/json' \
--data-raw '{
"propertyId": 212815,
"roomTypeId": "223121",
"arrivalDate": "2024-03-10",
"departureDate": "2024-03-12",
"arrivalEstimatedTime": "18:00",
"departureEstimatedTime": "12:00",
"guest": {
"name": "Alice Johnson",
"firstName": "Alice",
"lastName": "Johnson",
"email": "alicej@example.com",
"phone": "9876543210",
"address": {
"line1": "456 Oak Lane",
"line2": "Suite 12",
"postalCode": "67890",
"city": "Laketown",
"state": "Lakestate",
"country": "Wonderland"
}
},
"status": "confirmed",
"numberOfGuests": 3,
"numberOfAdults": 2,
"numberOfChildren": 1,
"numberOfInfants": 0,
"numberOfPets": 1,
"totalPrice": 950,
"currency": "USD",
"notes": "Need a crib for the child.",
"comments": "Looking forward to a lakeside view."
}'

Example Responseโ€‹

{
"success": true,
"data": {
"id": "9961197",
"createdAt": "2024-05-31T19:18:36.000Z",
"updatedAt": "2024-05-31T19:18:37.000Z",
"cancelledAt": "",
"arrivalDate": "2024-08-02",
"departureDate": "2024-08-03",
"nights": 1,
"propertyId": "573484",
"roomTypeIds":[
"223121"
],
"numberOfGuests": 2,
"primaryGuest": {
"name": "Alonso Doe",
"emails": [
"adarsh32017@gmail.com"
],
"mobileNumbers": [
"123456789"
],
"nationality": null
},
"source": "UNKNOWN",
"totalPrice": 3,
"currency": "USD",
"status": "CONFIRMED",
"arrivalEstimatedTime": "",
"departureEstimatedTime": "",
"codes": {
"accessCode": [
""
]
},
"notes": null,
"finances": {
"totalPrice": 3,
"currency": "USD",
"totalPaid": 0,
"remainingBalance": 3,
"basePrice": {
"totalBasePrice": 1,
"breakdown": [
{
"name": "SEA_URCHIN_ยท_WEST_COAST_CEDAR_LOFT_&_BEAM_SUITE!",
"type": "RoomRate",
"total": 1
}
]
},
"fee": {
"totalFee": 1,
"breakdown": [
{
"name": "CLEANING_FEE",
"type": "Fee",
"total": 1
}
]
},
"tax": {
"totalTax": 1,
"breakdown": [
{
"name": "HOTEL_TAX",
"type": "Tax",
"total": 1
}
]
},
"discount": {
"totalDiscount": 0,
"breakdown": []
}
}
}
}